/*
  Touch Gateway Proxy Applet
  Copyright (C) 2009 by Dean North
  This software is provided under the GNU general public license (http://www.gnu.org/copyleft/gpl.html).
*/

import java.applet.*;
import java.awt.*;

public class ProxyApplet extends Applet {

	public void paint( Graphics g ) {
        g.drawString("TouchGateway",50,25);
	}
	
	public void init() {
		System.out.println("Touch Gateway Proxy");
    	System.out.println("Copyright 2009 by Dean North");
    	System.out.println("based on...");
    	System.out.println("Java Transparent Proxy");
    	System.out.println("Copyright (C) 1999 by Didier Frick (http://www.dfr.ch/)");
    	System.out.println("This software is provided under the GNU general public license (http://www.gnu.org/copyleft/gpl.html)");

		try {
		    ProxyThread.parseArguments(new String[]{"localhost", "3334", "localhost", "3333"},System.out,System.err);
			ProxyThread.parseArguments(new String[]{"localhost", "843", "localhost", "0"},System.out,System.err);
		} catch(Exception xc) {
		    System.err.println(xc.getMessage());
		    System.exit(1);
		}
		
	}
	
}
